﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Tetris game by team Coconut</title>

    <script src="shims/deepClone.js"></script>
    <script src="shims/ClassicalOop.js"></script>
    <script src="tetris.js"></script>
    <script src="Vector2D.js"></script>
    <script src="Block.js"></script>
    <script src="_FallingObject.js"></script>
    <script src="FallingL.js"></script>
    <script src="FallingLReversed.js"></script>
    <script src="FallingZ.js"></script>
    <script src="FallingZReversed.js"></script>
    <script src="FallingLine.js"></script>
    <script src="FallingSquare.js"></script>
    <script src="FallingT.js"></script>
    <script src="Earth.js"></script>
    <script src="CollisionType.js"></script>
    <script src="CollisionDetector.js"></script>

</head>
<body>
    <script>
        var fallingObject = new tetris.FallingT(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingL(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingLReversed(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingSquare(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingLine(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingZ(2, 2);
        logPrintObject();

        fallingObject = new tetris.FallingZReversed(2, 2);
        logPrintObject();

        function logPrintObject() {
            var earth = new tetris.Earth(5, 5);
            earth.add(fallingObject);
            console.log(earth.toString());
            console.log(fallingObject.toString());
        };
    </script>
</body>
</html>
